package com.bsoft.gol.hbs.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import ctd.spring.boot.annotation.SsdevDao;
import ctd.util.annotation.RpcService;
import hcn.base.feerule.ExpressModeRule;

import java.util.List;
@SsdevDao(serviceId = "expressModeRule")
public abstract class ExpressModeRuleDAO extends HibernateSupportDelegateDAO<ExpressModeRule> {

    public ExpressModeRuleDAO() {
        this.setKeyField("modeId");
    }

    @RpcService
    @DAOMethod(sql = " from ExpressModeRule where ruleId=:ruleId ")
    public abstract List<ExpressModeRule> findModeByRuleId(@DAOParam("ruleId")String ruleId);

}
